package cn.xf.common.enums;

public enum ResultEnum implements BaseEnum {

    SUCCESS(200, "成功"), FAIL(500, "失败");

    private int value;

    private String name;

    public void setValue(int value) {
        this.value = value;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public String getName() {
        return name;
    }

    ResultEnum(int code, String message) {
        this.value = code;
        this.name = message;
    }
}
